<html>
	<head>

<script src="js/valid.js" type="text/javascript" ></script>
<link href = "../css/border_style_rounded.css" type = "text/css" rel = "stylesheet" />
	</head>


<?
	session_start();

	if(isset($_SESSION['username']))
	{
		if(isset($_SESSION['category']))
		{
			$cat = $_SESSION['category'];
			header("location:$cat/home.php?username=".$_SESSION['username']);
		}		
	}

?>




	<body>
		<form action = 'confirm.php' method = 'post'>
		<div class="divTable">
		        <div class="headRow">
        		        <div class="divCell_info">Username : </div>
        		        <div class="divCell_input"><input class = 'rounded' type = 'text' name = 'txt_username' id = 'username' onblur = 'return valid(this.id)' /></div>
        		        <div class="divCell_error"><label id = 'lbl_username'></label></div>
        		</div>
            		<div class="divRow">
        		        <div class="divCell_info">Email : </div>
        		        <div class="divCell_input"><input class = 'rounded' type = 'text' name = 'txt_email' id = 'email' onblur ='return valid(this.id)' onkeyup = 'return mail()' /></div>
        		        <div class="divCell_error"><label id = 'lbl_email'></label></div>
        		</div>
            		<div class="divRow">
        		        <div class="divCell_info">Password : </div>
        		        <div class="divCell_input"><input class = 'rounded' type = 'text' name = 'txt_password' id = 'password' onblur = 'return valid(this.id)' onkeyup = 'return pwd()' /></div>
        		        <div class="divCell_error"><label id = 'lbl_password'></label></div>
        		</div>
            		<div class="divRow">
        		        <div class="divCell_info">Confirm Password : </div>
        		        <div class="divCell_input"><input class = 'rounded' type = 'text' name = 'txt_cpassword' id = 'cpassword' onblur = 'return valid(this.id)' onkeyup = 'return cpwd()' /></div>
        		        <div class="divCell_error"><label id = 'lbl_cpassword'></label></div>
        		</div>

            		<div class="divRow">
        		        <div class="divCell_info">Category : </div>
        		        <div class="divCell_input"><select class = 'rounded' type = 'text' name = 'type' id = 'type' onblur = 'return valid(this.id)' onkeyup = 'return cpwd()' ><option>Student</option><option>Guide</option><option>Mentor</option><option>College</option><option>Industry</option></select></div>
        		        <div class="divCell_error"><label id = 'lbl_type'></label></div>
        		</div>


            		<div class="divRow">
        		        <div class="divCell_info"></div>
        		        <div class="divCell_input"><input class = 'rounded' type = 'submit' name = 'txt_submit' id = 'submit' onblur = 'return valid()' value = 'Register' /></div>
        		        <div class="divCell_error"><label id = 'lbl_cpassword'></label></div>
        		</div>
      		</div>
		</form>

<?
	if(isset($_GET['msg']))
	{
		$msg = $_GET['msg'];
	}
	else
	{
		$msg = "";
	}
	echo $msg;
?>
	</body>
</html>
